const Koa=require('koa');
const routerMiddl=require('./router');
const bodyparser=require('koa-bodyparser');
const cors=require('koa-cors')


let app=new Koa();

app.use(cors());
app.use(bodyparser());
app.use(routerMiddl());


let port=3000;
app.listen(port);

console.log(`运行在以下地址： http://localhost:${port}`);



